Remove a shortcut in gtk_widget_set_focus_child
authorMatthias Clasen <mclasen@redhat.com>
Wed, 25 Oct 2017 22:26:06 +0000 (18:26 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Wed, 25 Oct 2017 22:26:06 +0000 (18:26 -0400)
Since focus can now be represented by more than one state,
just looking at the focus_child is no longer sufficient - we
may fail to propagate :focus(visible) if we do so. For now,
just remove the shortcut and always do the work.

gtk/gtkwidget.c

index 823b3ab32086571c9bdb5b436abdfb46ad423c49..e1e7d7332e8062bc4bf051e9b403591af23b4194 100644 (file)
@@ -15466,9 +15466,6 @@ gtk_widget_set_focus_child (GtkWidget *widget,
 
   g_return_if_fail (GTK_IS_WIDGET (widget));
 
-  if (child == priv->focus_child)
-    return;
-
   if (child != NULL)
     {
       g_return_if_fail (GTK_IS_WIDGET (child));